import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/specialEquipment/devicespecialequiinfo/getDeviceInformation',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/api/specialEquipment/devicespecialequiinfo/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const update = (row) => {
  return request({
    url: '/api/specialEquipment/devicespecialequiinfo/updateDeviceInformation',
    method: 'post',
    data: row
  })
}
// 生成二维码
export const generateQRCode = (id) => {
  return request({
    url: '/api/specialEquipment/devicespecialequiinfo/generateQRCode',
    method: 'post',
    params: {
      id
    }
  })
}
export const getQRCode = (fileId) => {
  return request({
    url: '/api/fileManager/file/'+fileId,
    method: 'get',
  })
}
// 上传多个文件
export const uploadFiles = (files) => { 
  return request({
    url: '/api/fileManager/upload/files',
    method: 'post',
    data: files
  })
}


